package com.itranswarp.weibo.api;

/**
 * Weibo API exception that has error, errorCode and request.
 * 
 * @author Michael Liao (askxuefeng@gmail.com)
 */
public class WeiboApiException extends WeiboException {

	int errorCode;
	String request;

	public WeiboApiException(int errorCode, String error, String request) {
		super(error);
		this.errorCode = errorCode;
		this.request = request;
	}

	public int getErrorCode() {
		return errorCode;
	}

	public String getError() {
		return getMessage();
	}

	public String getRequest() {
		return request;
	}
}
